{% import 'Import/app_import.html.twig' as appImport %}
<ul class="nav nav-tabs mb-4">
    <li class="nav-item">
        <a class="nav-link {% if 'summary' == active %}active {{ theme_tab_active }}{% else %}{{ theme_tab }}{% endif %}" href="{{ path('nodes_read', {'node': node.name}) }}">{{ 'summary'|trans }}</a>
    </li>

    {% if is_granted('NODE_SETTINGS', node) %}
        <li class="nav-item">
            <a class="nav-link {% if 'settings' == active %}active {{ theme_tab_active }}{% else %}{{ theme_tab }}{% endif %}" href="{{ path('nodes_read_settings', {'node': node.name}) }}">{{ 'settings'|trans }}</a>
        </li>
    {% endif %}

    {% if is_granted('NODE_USAGE', node) %}
        <li class="nav-item">
            <a class="nav-link {% if 'usage' == active %}active {{ theme_tab_active }}{% else %}{{ theme_tab }}{% endif %}" href="{{ path('nodes_read_usage', {'node': node.name}) }}">{{ 'usage'|trans }}</a>
        </li>
    {% endif %}

    {% if is_granted('NODE_PLUGINS', node) %}
        <li class="nav-item">
            <a class="nav-link {% if 'plugins' == active %}active {{ theme_tab_active }}{% else %}{{ theme_tab }}{% endif %}" href="{{ path('nodes_read_plugins', {'node': node.name}) }}">{{ 'plugins'|trans }}</a>
        </li>
    {% endif %}
</ul>
